// pages/goods/goodsDetail/comps/goodsBuy/goodsBuy.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        goodsInfo: Object,
        userInfo: Object,
        isSureBuy: Boolean
    },

    /**
     * 组件的初始数据
     */
    data: {

    },

    /**
     * 组件的方法列表
     */
    methods: {
        share: function() {
            this.triggerEvent('share')
        },
        goCart: function() {
            wx.switchTab({
                url: '/pages/cart/cart'
            })
        },
        goBuy: function(){
            this.triggerEvent('goBuy')
        },
        memberBuy: function() {
            this.triggerEvent('memberBuy')
        },
        freeBuy: function() {
            this.triggerEvent('freeBuy')
        },
        beVip: function(){
            this.triggerEvent('beVip')
        }
    }
})